package com.taritari.journal.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author taritari
 * @date 2023-12-02 18:57
 * @description
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info().title("开发Api文档")
                        .description("接口文档1.0")
                        .version("v1.0")
                        .license(new License().name("我的仓库").url("https://gitee.com/taritaris")))
                .externalDocs(new ExternalDocumentation()
                        .description("关于我")
                        .url("https://blog.csdn.net/qq_43293370"));
    }

}
